package com.itheima.health.service;

import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

//UserDetailsService 是Security 框架提供的一个接口
public class SecurityUserDetailsService implements UserDetailsService {

    //通过查找数据库  赋予不同用户不用的角色和权限
    /**
     * @Author: JASON
     * @Date: 12:32 2021/1/13
     * @Parms [s]
     * @ReturnType: org.springframework.security.core.userdetails.UserDetails  是框架的类 用于封装用户的权限和角色控制信息
     * @Description: 实现方法
    */

    //UserDetails类中Collection<? extends GrantedAuthority> getAuthorities()属性 用于封装权限和角色信息
    @Override
    public UserDetails loadUserByUsername(String s) throws UsernameNotFoundException {

        return null;
    }
}
